/*
 * LoginDefine.h
 *
 *  Created on: Aug 31, 2017
 *      Author: gaoyi
 */

#pragma once

#define LOGIN_TOKEN_LIVE_TIME       40             //
#define MAX_LOGIN_VERIFY_COUNT      3000           //
#define MAX_LOGIN_PLAYER_COUNT      30000          //
#define LOGIN_VERIFY_URL            "";
#define CLINET_SESSIONID_MAX        100000000      //

//
#define MAX_CB_TIME 120000

//
#define MAX_CONNECT_TIME 600000

//
enum LOGIN_STATE
{
    LOGIN_STATE_INIT,
    LOGIN_STATE_CONNECT,
    LOGIN_STATE_VERIFY,
    LOGIN_STATE_REQ_GUID,
    LOGIN_STATE_SELECT_WORLD,
    LOGIN_STATE_FINISH,
    LOGIN_STATE_COUNT,
};

struct LoginRoleInfo
{
    LOGIN_STATE state;
    uint64_t callTampTime;   //
    NFGUID roleId;
    NFGUID clientId;
    std::string account;
    int sockIndex;

    LoginRoleInfo()
    {
        state = LOGIN_STATE_INIT;
        callTampTime = 0;
        sockIndex = 0;
    }
};


